package com.cloud.sample.core.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author gjy
 * @since 2021/12/2 0002
 */
@Data
public class BaseEntity {


    @TableField(fill = FieldFill.INSERT)
    protected LocalDateTime createTime;

    @TableField(fill = FieldFill.UPDATE)
    protected LocalDateTime updateTime;

    @TableLogic
    protected Integer deleted;

    @Version
    protected Integer version;
}
